<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
       *{
            margin: 0;
            padding: 0;
       }
       /* 将父级容器body高度撑开 */
       html,body{
            width: 100%;
            height: 100%;
       }
       /*flex 作用于父容器，通过设置父级的flex，来控制其子元素的布局方式*/
        body{
            background-color: pink;
            display:flex;
            justify-content:center;
            align-items:center;
        }
        /* transform rotate 旋转;
           absolute 相对于父级容器进行定位 脱离文档流 */
        /* 如果省略x y，阴影会直接围绕元素的四周均匀扩散，形成一种“外描边”的效果。*/
        .box1{
            width:300px;
            height:300px;
            background-color: red;
            position: absolute;
            transform: rotate(45deg);
            animation:heart 1s alternate infinite;
            box-shadow:0 0 50px red;
        }
        .box2{
            position:absolute;
            width:300px;
            height:150px;
            background-color: red;
            border-radius:150px 150px 0 0;
            top:-150px;
            box-shadow:0 0 50px red;
        }
        .box3{
            position:absolute;
            width:150px;
            height:300px;
            background-color: red;
            border-radius:150px 0 0 150px;
            left:-150px;
            box-shadow:0 0 50px red;
        }
        .box1 p{
            color:white;
            transform: rotate(-45deg);
            font-size: 50px;
            text-align: center;
            line-height: 300px;
        }
        /* rotate写两遍原因：transform后者覆盖前者 写前者为了确认样式生效 */
        @keyframes heart{
            0%{
                transform: rotate(45deg) scale(0.6);
            }
            100%{
                transform: rotate(45deg) scale(1.4);
            }
        }
    </style> 
</head>
<body>
    <div class="box1">
        <div class="box2"></div>
        <div class="box3"></div>
        <p>郎玉珠</p>
    </div>
</body>
</html>